package cn.tedu.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class BrandAddNewParam implements Serializable {

    @NotNull(message = "必须提交品牌名称！")
    @ApiModelProperty(value = "品牌名称",required = true)
    private String name;

    @NotNull(message = "必须提交品牌拼音！")
    @ApiModelProperty(value = "品牌拼音",required = true)
    private String pinyin;


    private String logo;

    private String description;

    private String keywords;

    @NotNull(message = "必须提交品牌排序序号！")
    @Range(max =99,message = "排序序号值必须在0-99之间")
    private Integer sort;

    @Range(max =1,message = "是否启用必须在0-1之间")
    private Integer enable;

    @ApiModelProperty(value = "品牌销量",required = true,example = "0")
    private Integer sales;
    @ApiModelProperty(value = "商品种类数量总和",example = "0")
    private Integer producttCount;
    @ApiModelProperty(value = "买家评论数量总和",example = "0")
    private Integer commentCount;


}
